﻿<%@ Page Language="C#" MasterPageFile="~/Master/Master.Master" AutoEventWireup="true" CodeBehind="search.aspx.cs" Inherits="BONSAI.UI.Pages.search" Title="..:HoaBonSai:.. Tìm sản phẩm " %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="content-menu-top">Danh sách sản phẩm cần tìm
    </div>
    <div class="content-menu-centter">
         <asp:ListView ID="lvwNews" runat="server" GroupItemCount="4" 
             onpagepropertieschanging="lvwNews_PagePropertiesChanging" 
             onitemcommand="lvwNews_ItemCommand">
            <LayoutTemplate>
             <div>
                    <asp:PlaceHolder runat="server" ID="groupPlaceHolder">LayoutTemplate</asp:PlaceHolder>
            </div>
            </LayoutTemplate>
             <GroupTemplate >
                 <div>
                    <asp:PlaceHolder runat="server" ID="itemPlaceHolder">GroupTemplate</asp:PlaceHolder>
                </div>
            </GroupTemplate>
                 <ItemTemplate >
                    <div class="home-group">
                        <div class="home-bg-top"></div>
		               <div class="home-bg-center">
			                <div class="home-title link"><asp:HyperLink ID="HyperLink1" NavigateUrl='<%#"~/home-detail/" + string.Format("{0}",Eval("ProductsID")) %>' runat="server"><%# Eval("NameFull")%></asp:HyperLink></div>
			                <div class="home-img linkimg ">
                                <asp:HyperLink ID="HyperLink2" NavigateUrl='<%#"~/home-detail/" + string.Format("{0}",Eval("ProductsID")) %>' runat="server">
                                <asp:Image ID="Image1" ImageUrl='<%# Eval("thumbnail")%>' runat="server"  style="border:none; max-height:134px; max-width:139px;"/>
                                </asp:HyperLink>
                             </div>
			                <div class="home-bottom-left"><%# Eval("PriceOld")%> VNĐ</div>
			                <div class="home-bottom-right linkimg ">
                                <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/add-to-cart.jpg"  ToolTip="Thêm vào giỏ hàng" CommandArgument='<%#Eval("ProductsID") %>'  CommandName="addtocart" style="border:none;"/>
			                </div>
			                <div class="height0"></div>
		                </div>
		                <div class="home-bg-bottom"></div>
		            </div>
                 </ItemTemplate>
          </asp:ListView>
          
           <div class="pagesize" style="clear:both;" >
            <asp:DataPager ID="DataPager1" runat="server" PagedControlID="lvwNews" 
                   PageSize="12"  >
                <Fields>
                    <asp:TemplatePagerField>
                        <PagerTemplate>
                            <%#CalNumber(Container.TotalRowCount,4)%> trang / <%#Container.TotalRowCount%> sản phẩm 
                        </PagerTemplate>
                    </asp:TemplatePagerField>
                    <asp:NextPreviousPagerField ShowNextPageButton="False" />
                    <asp:NumericPagerField />
                    <asp:NextPreviousPagerField ShowPreviousPageButton="False" />
                </Fields>
            </asp:DataPager>
         </div>    
		<!--1--><!--
		<div class="home-group">
			<div class="home-bg-top"></div>
			<div class="home-bg-center">
				<div class="home-title link"><a href="#">nfskajfhja</a></div>
				<div class="home-img linkimg "><a href="#"><img src="../Photos/product/2.jpg" style="border:none;" /></a></div>
				<div class="home-bottom-left">800.000 VNĐ</div>
				<div class="home-bottom-right linkimg "><a href="#"><img src="../Images/add-to-cart.jpg" title="Thêm vào giỏ hàng" style="border:none;"/></a></div>
				<div class="height0"></div>
			</div>
			<div class="home-bg-bottom"></div>
		</div>
		<div class="">1 2 3 4 5 ...</div>-->
		<!--end-->				
		
		<div class="height0"></div>
	</div>

</asp:Content>
